﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ShapeAppMvc
{
    
        public class Circle: Shape
        {
            public double Radius { get; set; }
            public override double  GetArea()
            {
                return Math.PI * 2 * Radius;
            }

            

        }

        public class Rectangle : Shape
        {
            public double Length { get; set; }
            public double Width { get; set; }
            public override double GetArea()
            {
                return Length * Width;
            }

           
        }

        public class Triangle : Shape
        {
            public double Base { get; set; }
            public double Height { get; set; }
            public override double GetArea()
            {
                return Base * Height;
            }
            
        }
    }
